<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
class CommonController extends Controller {
	public function __construct() {
		parent::__construct();
		if (!isset($_SESSION['user'])) {
			go(U('User/login'));
		}
		if(method_exists($this, '__auto')){
			$this->__auto();
		}
	}

}